
package com.jf.cloud.multishop.controller.admin;

import com.jf.cloud.common.constant.Constant;
import com.jf.cloud.common.response.ServerResponseEntity;
import com.jf.cloud.multishop.service.ShopBankCardService;
import io.swagger.v3.oas.annotations.tags.Tag;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zz
 */
@RestController("adminShopBankCardController")
@RequestMapping("/mp/shop_apply")
@Tag(name = "admin-店铺银行卡信息")
public class ShopBankCardController {

    @Autowired
    private ShopBankCardService shopBankCardService;

    @DeleteMapping
    @Operation(summary = "根据id删除店铺的银行卡列表" , description = "根据id删除店铺的银行卡列表")
    public ServerResponseEntity<Void> listByShopId(@RequestParam Long shopBankCardId) {
        shopBankCardService.deleteByShopBankCardId(shopBankCardId, Constant.PLATFORM_SHOP_ID);
        return ServerResponseEntity.success();
    }

}
